from sqlalchemy import Column, Integer, Float, Text, ForeignKey, DateTime
from ..database  import Base

class Evaluation(Base):
    __tablename__ = "evaluations"

    id = Column(Integer, primary_key=True, index=True)
    session_id = Column(Integer, ForeignKey("interview_sessions.id", ondelete="CASCADE"))
    language_score = Column(Float)
    emotion_score = Column(Float)
    logic_score = Column(Float)
    overall_score = Column(Float)
    feedback = Column(Text)
    created_at = Column(DateTime)
